package com.cloud.school.bus.teacherhelper.base.anim.swap3d;

/**
 * * This class is responsible for swapping the views and start the second *
 * half of the animation.
 */
public final class SwapViews implements Runnable {
	private int mSwapView;
	private Constants mConstants;

	public SwapViews(Constants constants, int swapView) {
		mConstants = constants;
		mSwapView = swapView;
	}

	public void run() {
		switch (mSwapView) {
		case Constants.viewA: {
			// 切换到A界面
			mConstants.swapViewA();
			break;
		}
		case Constants.viewB: {
			// 切换到B界面
			mConstants.swapViewB();
			break;
		}
		default:
			break;
		}
	}
}